package com.xxxx.manager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author Lionel
 * @Date 2020/10/29 18:07
 * Created by IntelliJ IDEA 2020.1.
 * Project: shop
 * Description：测试页面跳转
 */
@Controller
public class PageController {

    /**
     * 页面跳转 Restful风格
     * @param page
     * @return
     */
    @RequestMapping("/{page}")
    public String page(@PathVariable String page){
        return page;
    }

    /**
     * 页面跳转 Restful风格
     * @param
     * @return
     */
    @RequestMapping("/")
    public String index(){
        return "index";
    }

}
